Skip to content

Elements with blocking=render have to be in the <head> #39663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eeeps opened this issue May 24, 2025 · 0 comments
Open

Elements with blocking=render have to be in the <head> #39663

eeeps opened this issue May 24, 2025 · 0 comments
Labels
Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs goal: completeness (Experiment label) Issues about content missing important/relevant details. help wanted If you know something about this topic, we would love your help!

Comments

@eeeps
Copy link
Contributor

eeeps commented May 24, 2025

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/blocking

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

On these pages:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/blocking
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/blocking
https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/blocking
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script#blocking
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link#blocking
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style#blocking

...the fact that render-blocking elements have to appear in the <head> is not mentioned. This caught me out but the spec author (Noam Rosenthal) helped me out and asked me to file an MDN issue: https://bsky.app/profile/nomster.bsky.social/post/3lpwpn6ezgc2v

What did you expect to see?

Information about the requirement that blocking=render only works on elements in the <head>

Do you have any supporting links, references, or citations?

https://bsky.app/profile/nomster.bsky.social/post/3lpwpn6ezgc2v
https://html.spec.whatwg.org/multipage/dom.html#allows-adding-render-blocking-elements

Do you have anything more you want to share?

No response

@eeeps eeeps added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 24, 2025
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs labels May 24, 2025
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 25, 2025
@caugner caugner added the goal: completeness (Experiment label) Issues about content missing important/relevant details. label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs goal: completeness (Experiment label) Issues about content missing important/relevant details. help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants